﻿using System.Net.Mail;

namespace TSharp.Core.Authentication.Facade
{
    /// <summary>
    /// 邮件发送服务
    /// <para>2010/10/24</para>
    /// 	<para>THINKPADT61</para>
    /// 	<para>tangjingbo</para>
    /// </summary>
    public interface IMailService
    {
        /// <summary>
        /// 发送邮件
        /// </summary>
        /// <param name="host">The host.</param>
        /// <param name="port">The port.</param>
        /// <param name="timeout">The timeout.</param>
        /// <param name="enableSsl">if set to <c>true</c> [enable SSL].</param>
        /// <param name="userName">Name of the user.</param>
        /// <param name="passWord">The pass word.</param>
        /// <param name="message">The message.</param>
        /// <param name="isSync">if set to <c>true</c> [is sync].</param>
        /// <param name="completedCallBack">The completed call back.</param>
        /// <returns></returns>
        bool Send(string host, int port, int timeout, bool enableSsl,
                  string userName, string passWord, MailMessage message, bool isSync,
                  SendCompletedEventHandler completedCallBack);
    }
}